package com.keguoyu.easymvp.commons;

import com.keguoyu.easymvp.commons.supplier.SupplierGenerator;

public class ValueHelper {

  private static ValueTaker sValueTaker = new ValueTakerImpl();

  public static boolean have(Object access, String key) {
    return sValueTaker.have(SupplierGenerator.me().wrapper(access), key);
  }

  public static <T> T take(Object access, String key) {
    return sValueTaker.take(SupplierGenerator.me().wrapper(access), key);
  }

  public static <T> boolean have(Object access, Class<T> key) {
    return sValueTaker.have(SupplierGenerator.me().wrapper(access), key);
  }

  public static <T> T take(Object access, Class<T> key) {
    return sValueTaker.take(SupplierGenerator.me().wrapper(access), key);
  }


}
